{% extends "forum/user/default.html" %}
{% load i18n %}

{% block content %}

{% if page.object_list.count %}

<table id="user_friends">
<thead>
    <tr>
        <th class="col1">{% trans "User" %}</th>
        <th class="col2">{% trans "Actions" %}</th>
    </tr>
</thead>

<tbody>
{% for friend in page.object_list %}
<tr {% if forloop.counter|divisibleby:2 %}class="mark"{% endif %}>
    <td><a href="{{friend.link}}">{{friend}}</a></td>
    <td>
    <a href="{{ friend.link.send_pvt }}">
        <img src="{{MEDIA_URL}}images/forum/reply_24x24.png" 
            alt='{% trans "send pvt" %}' title='{% trans "send pvt" %}'></img>
    </a>
    <a class="yousure" href="{{friend.link.remove_friend}}">
        <img src="{{MEDIA_URL}}images/forum/x_24x24.png" 
        alt='{% trans "remove friend"%}' title='{% trans "remove friend"%}'></img></a>
    </td>
</tr>
{% endfor %}
<tbody>

</table>
{% include "forum/includes/digg_paginator.html" %}

{% else %}
<div class="notice">{% trans "You don't have any friends yet." %}</div>
{% endif %}

{% endblock content %}